package com.bocloud.cmp.server.controller.app.resource;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;
import com.bocloud.cmp.interfaces.app.resource.DiagramService;
import com.bocloud.common.model.BsmResult;
import com.bocloud.common.model.RequestUser;
import com.bocloud.common.utils.Common;
/**
 * 应用饼状图server 控制层
 * @author Zaney
 * @data:2017年4月4日
 * @describe:
 */
@RestController
@RequestMapping("/diagram")
public class DiagramController {
	@Autowired
	private DiagramService diagramService;
	
	@RequestMapping(value = "/data", method = { RequestMethod.GET })
	public BsmResult data(@Value(Common.REQ_USER) RequestUser user){
		return diagramService.getData(user);
	}
}
